home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / patches / symantec / pro61.exe / UPDATE.BAT < prev    next >
DOS Batch File  |  1993-12-30  |  19KB  |  686 lines

  1. @echo off
  2. cls
  3.  
  4. if exist BIN\SCD.DLL goto install
  5. if exist BIN\SC.EXE goto install
  6.  
  7. goto wrongdir
  8.  
  9. :install
  10. rem ------------------------------------------------
  11. REM If VPRG is installed, we should add BIN\GRAPHIC
  12.  
  13. if not exist bin\VPRG.EXE goto nograph
  14. if exist bin\graphic\*.*  goto nograph
  15. @echo Adding BIN\GRAPHIC\*.*
  16. md bin\graphic
  17. cd bin\graphic
  18. ..\..\graphic
  19. cd ..\..
  20. @echo DONE
  21. @echo .
  22.  
  23. :nograph
  24. rem ------------------------------------------------
  25. REM If MFC samples are installed, we add three more
  26. REM and get rid of the RES dirs in SCRIBBLE
  27.  
  28. copy foo.txt mfc\samples\foo.txt
  29. if not exist BIN\VPRG.EXE goto nomfcsam
  30. if not exist MFC\SAMPLES\*.* goto nomfcsam
  31. if exist mfc\samples\doctemp\*.* goto nomfcsam
  32. if exist mfc\samples\dib\*.* goto nomfcsam
  33. if exist mfc\samples\calc\*.* goto nomfcsam
  34. @echo Updating MFC samples
  35. cd mfc\samples
  36. del foo.txt
  37. ..\..\mfcsam -d
  38. del scribble\step0\res\*.ico
  39. del scribble\step0\res\*.bmp
  40. rd scribble\step0\res
  41. del scribble\step1\res\*.ico
  42. del scribble\step1\res\*.bmp
  43. rd scribble\step1\res
  44. del scribble\step2\res\*.ico
  45. del scribble\step2\res\*.bmp
  46. rd scribble\step2\res
  47. del scribble\step3\res\*.ico
  48. del scribble\step3\res\*.bmp
  49. rd scribble\step3\res
  50. del scribble\step4\res\*.ico
  51. del scribble\step4\res\*.bmp
  52. del scribble\step4\*.res
  53. rd scribble\step4\res
  54. del scribble\step5\res\*.ico
  55. del scribble\step5\res\*.bmp
  56. rd scribble\step5\res
  57. cd ..\..
  58. @echo DONE
  59. @echo .
  60.  
  61. :nomfcsam
  62. rem ------------------------------------------------
  63. REM If MFC is installed, get rid of README directory
  64.  
  65. if not exist MFC\README\*.* goto nomfcrd
  66. @echo Deleting MFC\README
  67. del mfc\readme\*.txt
  68. rd mfc\readme
  69. @echo DONE
  70. @echo .
  71.  
  72. :nomfcrd
  73. rem ------------------------------------------------
  74. REM Patching BIN directory
  75.  
  76. @echo Patching BIN directory
  77. patch .\bin bin.rtp /ignore /nopathsearch
  78. @echo DONE
  79. @echo .
  80.  
  81. rem ------------------------------------------------
  82. REM Patching BIN\WELCOME directory
  83.  
  84. if not exist BIN\WELCOME\*.* goto nowelcme
  85. @echo Patching BIN\WELCOME directory
  86. patch .\bin\welcome welcme.rtp /ignore /nopathsearch
  87. @echo DONE
  88. @echo .
  89.  
  90. :nowelcme
  91. rem ------------------------------------------------
  92. REM Patching SRC\CTOOLS directory
  93.  
  94. if not exist src\ctools\*.* goto noctool
  95. @echo Patching SRC\CTOOLS directory
  96. patch .\src\ctools ctools.rtp /ignore /nopathsearch
  97. @echo DONE
  98. @echo .
  99.  
  100. :noctool
  101. rem ------------------------------------------------
  102. REM Patching SRC\DOS386 directory
  103.  
  104. if not exist src\dos386\*.* goto nodos386
  105. @echo Patching SRC\DOS386 directory
  106. patch .\src\dos386 dos386.rtp /ignore /nopathsearch
  107. @echo DONE
  108. @echo .
  109.  
  110. :nodos386
  111. rem ------------------------------------------------
  112. REM Patching SRC\CLIB directory
  113.  
  114. if not exist src\clib\*.* goto noclib
  115. @echo Patching SRC\CLIB directory
  116. patch .\src\clib clib.rtp /ignore /nopathsearch
  117. @echo DONE
  118. @echo .
  119.  
  120. :noclib
  121. rem ------------------------------------------------
  122. REM Patching SRC\WIN32 directory
  123.  
  124. if not exist src\win32\*.* goto now32src
  125. @echo Patching SRC\WIN32 directory
  126. patch .\src\win32 win32src.rtp /ignore /nopathsearch
  127. @echo DONE
  128. @echo .
  129.  
  130. rem ------------------------------------------------
  131. REM Patching SRC\WIN32\FLAT directory
  132.  
  133. @echo Patching SRC\WIN32\FLAT directory
  134. patch .\src\win32\flat flat.rtp /ignore /nopathsearch
  135. @echo DONE
  136. @echo .
  137.  
  138. :now32src
  139.  
  140. rem ------------------------------------------------
  141. REM Patching SAMPLES\WIN32\FONTVIEW directory
  142.  
  143. if not exist SAMPLES\WIN32\FONTVIEW\*.* goto nofontvw
  144. @echo Patching SAMPLES\WIN32\FONTVIEW directory
  145. patch .\samples\win32\fontview fontvw.rtp /ignore /nopathsearch
  146. @echo DONE
  147. @echo .
  148.  
  149. :nofontvw
  150. rem ------------------------------------------------
  151. REM Patching SAMPLES\WIN32\GDIDEMO directory
  152.  
  153. if not exist SAMPLES\WIN32\GDIDEMO\*.* goto nogdidem
  154. @echo Patching SAMPLES\WIN32\GDIDEMO directory
  155. patch .\samples\win32\gdidemo gdidem.rtp /ignore /nopathsearch
  156. @echo DONE
  157. @echo .
  158.  
  159. :nogdidem
  160. rem ------------------------------------------------
  161. REM Patching SAMPLES\WIN32\MYPAL directory
  162.  
  163. if not exist SAMPLES\WIN32\MYPAL\*.* goto nomypal
  164. @echo Patching SAMPLES\WIN32\MYPAL directory
  165. patch .\samples\win32\mypal mypal.rtp /ignore /nopathsearch
  166. @echo DONE
  167. @echo .
  168.  
  169. :nomypal
  170. rem ------------------------------------------------
  171. REM Patching SAMPLES\WIN32\FRACTAL directory
  172.  
  173. if not exist SAMPLES\WIN32\FRACTAL\*.* goto nofractl
  174. @echo Patching SAMPLES\WIN32\FRACTAL directory
  175. patch .\samples\win32\fractal fractl.rtp /ignore /nopathsearch
  176. @echo DONE
  177. @echo .
  178.  
  179. :nofractl
  180. rem ------------------------------------------------
  181. REM Patching SAMPLES\WIN32\SIMPLDLL directory
  182.  
  183. if not exist SAMPLES\WIN32\SIMPLDLL\*.* goto nosimpl
  184. @echo Patching SAMPLES\WIN32\SIMPLDLL directory
  185. patch .\samples\win32\simpldll simpl.rtp /ignore /nopathsearch
  186. @echo DONE
  187. @echo .
  188.  
  189. :nosimpl
  190. rem ------------------------------------------------
  191. REM Patching SAMPLES\WINDOWS\DLLPROJ directory
  192.  
  193. if not exist SAMPLES\WINDOWS\DLLPROJ\*.* goto nodllprj
  194. @echo Patching SAMPLES\WINDOWS\DLLPROJ directory
  195. patch .\samples\windows\dllproj dllprj.rtp /ignore /nopathsearch
  196. @echo DONE
  197. @echo .
  198.  
  199. :nodllprj
  200. rem ------------------------------------------------
  201. REM Patching SAMPLES\WINDOWS\HELPEX directory
  202.  
  203. if not exist SAMPLES\WINDOWS\HELPEX\*.* goto nohelpex
  204. @echo Patching SAMPLES\WINDOWS\HELPEX directory
  205. patch .\samples\windows\helpex helpex.rtp /ignore /nopathsearch
  206. @echo DONE
  207. @echo .
  208.  
  209. :nohelpex
  210. rem ------------------------------------------------
  211. REM Patching SAMPLES\WINDOWS\STRESS directory
  212.  
  213. if not exist SAMPLES\WINDOWS\STRESS\*.* goto nostress
  214. @echo Patching SAMPLES\WINDOWS\STRESS directory
  215. patch .\samples\windows\stress stress.rtp /ignore /nopathsearch
  216. @echo DONE
  217. @echo .
  218.  
  219. :nostress
  220. rem ------------------------------------------------
  221. REM Patching SAMPLES\WINDOWS\ZOOM directory
  222.  
  223. if not exist SAMPLES\WINDOWS\ZOOM\*.* goto nozoom
  224. @echo Patching SAMPLES\WINDOWS\ZOOM directory
  225. patch .\samples\windows\zoom zoom.rtp /ignore /nopathsearch
  226. @echo DONE
  227. @echo .
  228.  
  229. :nozoom
  230. rem ------------------------------------------------
  231. REM Patching SAMPLES\WINDOWS\ANIMATE directory
  232.  
  233. if not exist SAMPLES\WINDOWS\ANIMATE\*.* goto noanimat
  234. @echo Patching SAMPLES\WINDOWS\ANIMATE directory
  235. patch .\samples\windows\animate animat.rtp /ignore /nopathsearch
  236. @echo DONE
  237. @echo .
  238.  
  239. :noanimat
  240. rem ------------------------------------------------
  241. REM Patching SAMPLES\WINDOWS\WCLOCK directory
  242.  
  243. if not exist SAMPLES\WINDOWS\WCLOCK\*.* goto nowclock
  244. @echo Patching SAMPLES\WINDOWS\WCLOCK directory
  245. patch .\samples\windows\wclock wclock.rtp /ignore /nopathsearch
  246. @echo DONE
  247. @echo .
  248.  
  249. :nowclock
  250. rem ------------------------------------------------
  251. REM Patching LIB directory
  252.  
  253. @echo Patching LIB directory
  254. patch .\lib lib.rtp /ignore /nopathsearch
  255. @echo DONE
  256. @echo .
  257.  
  258. rem ------------------------------------------------
  259. REM Patching WIN32S directory
  260.  
  261. copy foo.txt win32s\foo.txt
  262. if not exist WIN32S\*.* goto nowin32s
  263. del win32s\foo.txt
  264.  
  265. rem ------------------------------------------------
  266. REM Patching WIN32S\FLOPPY directory
  267.  
  268. if not exist WIN32S\FLOPPY\*.* goto now32flp
  269. @echo Patching WIN32S\FLOPPY directory
  270. patch .\win32s\floppy w32flop.rtp /ignore /nopathsearch
  271. @echo DONE
  272. @echo .
  273.  
  274. :now32flp
  275.  
  276. rem ------------------------------------------------
  277. REM Patching WIN32S\DEBUG directory
  278.  
  279. if not exist WIN32S\DEBUG\*.* goto now32deb
  280. @echo Patching WIN32S\DEBUG directory
  281. patch .\win32s\debug w32deb.rtp /ignore /nopathsearch
  282. @echo DONE
  283. @echo .
  284.  
  285. :now32deb
  286. rem ------------------------------------------------
  287. REM Patching WIN32S\NODEBUG directory
  288.  
  289. if not exist WIN32S\NODEBUG\*.* goto now32nod
  290. @echo Patching WIN32S\NODEBUG directory
  291. patch .\win32s\nodebug w32nod.rtp /ignore /nopathsearch
  292. @echo DONE
  293. @echo .
  294.  
  295. :now32nod
  296. rem ------------------------------------------------
  297. REM Patching WIN32S\NLS directory
  298.  
  299. if not exist WIN32S\NLS\*.* goto now32nls
  300. @echo Patching WIN32S\NLS directory
  301. patch .\win32s\nls w32nls.rtp /ignore /nopathsearch
  302. @echo DONE
  303. @echo .
  304.  
  305. :now32nls
  306. :nowin32s
  307. rem ------------------------------------------------
  308. REM Patching MFC\SRC directory
  309.  
  310. if not exist MFC\SRC\*.* goto nomfcsrc
  311. @echo Patching MFC\SRC directory
  312. patch .\mfc\src  mfcsrc.rtp /ignore /nopathsearch
  313. @echo DONE
  314. @echo .
  315.  
  316. :nomfcsrc
  317. rem ------------------------------------------------
  318. REM Patching MFC\LIB directory
  319.  
  320. if not exist MFC\LIB\*.* goto nomfclib
  321. @echo Patching MFC\LIBSRC directory
  322. patch .\mfc\lib  mfclib.rtp /ignore /nopathsearch
  323. @echo DONE
  324. @echo .
  325.  
  326. :nomfclib
  327. rem ------------------------------------------------
  328. REM Patching MFC\INCLUDE directory
  329.  
  330. if not exist MFC\INCLUDE\*.* goto nomfcinc
  331. @echo Patching MFC\INCLUDE directory
  332. patch .\mfc\include  mfcinc.rtp /ignore /nopathsearch
  333. @echo DONE
  334. @echo .
  335.  
  336. :nomfcinc
  337. rem ------------------------------------------------
  338. REM Patching MFC\SAMPLES\CHKBOOK directory
  339.  
  340. if not exist MFC\SAMPLES\CHKBOOK\*.* goto nochkbok
  341. @echo Patching MFC\SAMPLES\CHKBOOK directory
  342. patch .\mfc\samples\chkbook chkbok.rtp /ignore /nopathsearch
  343. @echo DONE
  344. @echo .
  345.  
  346. :nochkbok
  347. rem ------------------------------------------------
  348. REM Patching MFC\SAMPLES\CRTLBARS directory
  349.  
  350. if not exist MFC\SAMPLES\CTRLBARS\*.* goto noctrlbr
  351. @echo Patching MFC\SAMPLES\CTRLBARS directory
  352. patch .\mfc\samples\ctrlbars ctrlbr.rtp /ignore /nopathsearch
  353. @echo DONE
  354. @echo .
  355.  
  356. :noctrlbr
  357. rem ------------------------------------------------
  358. REM Patching MFC\SAMPLES\CTRLTEST directory
  359.  
  360. if not exist MFC\SAMPLES\CTRLTEST\*.* goto noctrlts
  361. @echo Patching MFC\SAMPLES\CTRLTEST directory
  362. patch .\mfc\samples\ctrltest ctrlts.rtp /ignore /nopathsearch
  363. @echo DONE
  364. @echo .
  365.  
  366. :noctrlts
  367. rem ------------------------------------------------
  368. REM Patching MFC\SAMPLES\DIBLOOK directory
  369.  
  370. if not exist MFC\SAMPLES\DIBLOOK\*.* goto nodiblok
  371. @echo Patching MFC\SAMPLES\DIBLOOK directory
  372. patch .\mfc\samples\diblook diblok.rtp /ignore /nopathsearch
  373. @echo DONE
  374. @echo .
  375.  
  376. :nodiblok
  377. rem ------------------------------------------------
  378. REM Patching MFC\SAMPLES\DLLTRACE directory
  379.  
  380. if not exist MFC\SAMPLES\DLLTRACE\*.* goto nodlltrc
  381. @echo Patching MFC\SAMPLES\DLLTRACE directory
  382. patch .\mfc\samples\DLLTRACE dlltrc.rtp /ignore /nopathsearch
  383. @echo DONE
  384. @echo .
  385.  
  386. :nodlltrc
  387. rem ------------------------------------------------
  388. REM Patching MFC\SAMPLES\HELLO directory
  389.  
  390. if not exist MFC\SAMPLES\HELLO\*.* goto nohello
  391. @echo Patching MFC\SAMPLES\HELLO directory
  392. patch .\mfc\samples\hello hello.rtp /ignore /nopathsearch
  393. @echo DONE
  394. @echo .
  395.  
  396. :nohello
  397. rem ------------------------------------------------
  398. REM Patching MFC\SAMPLES\HELLOAPP directory
  399.  
  400. if not exist MFC\SAMPLES\HELLOAPP\*.* goto noheloap
  401. @echo Patching MFC\SAMPLES\HELLOAPP directory
  402. patch .\mfc\samples\helloapp heloap.rtp /ignore /nopathsearch
  403. @echo DONE
  404. @echo .
  405.  
  406. :noheloap
  407. rem ------------------------------------------------
  408. REM Patching MFC\SAMPLES\HIERSVR directory
  409.  
  410. if not exist MFC\SAMPLES\HIERSVR\*.* goto nohier
  411. @echo Patching MFC\SAMPLES\HIERSVR directory
  412. patch .\mfc\samples\hiersvr hier.rtp /ignore /nopathsearch
  413. @echo DONE
  414. @echo .
  415.  
  416. :nohier
  417. rem ------------------------------------------------
  418. REM Patching MFC\SAMPLES\MDI directory
  419.  
  420. if not exist MFC\SAMPLES\MDI\*.* goto nomdi
  421. @echo Patching MFC\SAMPLES\MDI directory
  422. patch .\mfc\samples\mdi mdi.rtp /ignore /nopathsearch
  423. @echo DONE
  424. @echo .
  425.  
  426. :nomdi
  427. rem ------------------------------------------------
  428. REM Patching MFC\SAMPLES\MINSVR directory
  429.  
  430. if not exist MFC\SAMPLES\MINSVR\*.* goto nominsvr
  431. @echo Patching MFC\SAMPLES\MINSVR directory
  432. patch .\mfc\samples\minsvr minsvr.rtp /ignore /nopathsearch
  433. @echo DONE
  434. @echo .
  435.  
  436. :nominsvr
  437. rem ------------------------------------------------
  438. REM Patching MFC\SAMPLES\MULTIPAD directory
  439.  
  440. if not exist MFC\SAMPLES\MULTIPAD\*.* goto nomulti
  441. @echo Patching MFC\SAMPLES\MULTIPAD directory
  442. patch .\mfc\samples\multipad multi.rtp /ignore /nopathsearch
  443. @echo DONE
  444. @echo .
  445.  
  446. :nomulti
  447. rem ------------------------------------------------
  448. REM Patching MFC\SAMPLES\OCLIENT directory
  449.  
  450. if not exist MFC\SAMPLES\OCLIENT\*.* goto nooclt
  451. @echo Patching MFC\SAMPLES\OCLIENT directory
  452. patch .\mfc\samples\oclient oclt.rtp /ignore /nopathsearch
  453. @echo DONE
  454. @echo .
  455.  
  456. :nooclt
  457. rem ------------------------------------------------
  458. REM Patching MFC\SAMPLES\SPEAKN directory
  459.  
  460. if not exist MFC\SAMPLES\SPEAKN\*.* goto nospeakn
  461. @echo Patching MFC\SAMPLES\SPEAKN directory
  462. patch .\mfc\samples\speakn speakn.rtp /ignore /nopathsearch
  463. @echo DONE
  464. @echo .
  465.  
  466. :nospeakn
  467. rem ------------------------------------------------
  468. REM Patching MFC\SAMPLES\SUPERPAD directory
  469.  
  470. if not exist MFC\SAMPLES\SUPERPAD\*.* goto nosuper
  471. @echo Patching MFC\SAMPLES\SUPERPAD directory
  472. patch .\mfc\samples\superpad super.rtp /ignore /nopathsearch
  473. @echo DONE
  474. @echo .
  475.  
  476. :nosuper
  477. rem ------------------------------------------------
  478. REM Patching MFC\SAMPLES\TRACER directory
  479.  
  480. if not exist MFC\SAMPLES\TRACER\*.* goto notracer
  481. @echo Patching MFC\SAMPLES\TRACER directory
  482. patch .\mfc\samples\tracer tracer.rtp /ignore /nopathsearch
  483. @echo DONE
  484. @echo .
  485.  
  486. :notracer
  487. rem ------------------------------------------------
  488. REM Patching MFC\SAMPLES\DLLHUSK directory
  489.  
  490. if not exist MFC\SAMPLES\DLLHUSK\*.* goto nohusk
  491. @echo Patching MFC\SAMPLES\DLLHUSK directory
  492. patch .\mfc\samples\DLLHUSK husk.rtp /ignore /nopathsearch
  493. @echo DONE
  494. @echo .
  495.  
  496. :nohusk
  497. rem ------------------------------------------------
  498. REM Patching MFC\SAMPLES\VIEWEX directory
  499.  
  500. if not exist MFC\SAMPLES\VIEWEX\*.* goto noviewex
  501. @echo Patching MFC\SAMPLES\VIEWEX directory
  502. patch .\mfc\samples\viewex viewex.rtp /ignore /nopathsearch
  503. @echo DONE
  504. @echo .
  505.  
  506. :noviewex
  507. rem ------------------------------------------------
  508. REM Patching MFC\SAMPLES\VBCHART directory
  509.  
  510. if not exist MFC\SAMPLES\VBCHART\*.* goto novbchrt
  511. @echo Patching MFC\SAMPLES\VBCHART directory
  512. patch .\mfc\samples\VBCHART vbchrt.rtp /ignore /nopathsearch
  513. @echo DONE
  514. @echo .
  515.  
  516. :novbchrt
  517. rem ------------------------------------------------
  518. REM Patching MFC\SAMPLES\VBCIRCLE directory
  519.  
  520. if not exist MFC\SAMPLES\VBCIRCLE\*.* goto novbcirc
  521. @echo Patching MFC\SAMPLES\VBCIRCLE directory
  522. patch .\mfc\samples\vbcircle vbcirc.rtp /ignore /nopathsearch
  523. @echo DONE
  524. @echo .
  525.  
  526. :novbcirc
  527. rem ------------------------------------------------
  528. REM Patching MFC\SAMPLES\SCRIBBLE\STEP0 directory
  529.  
  530. if not exist MFC\SAMPLES\SCRIBBLE\STEP0\*.* goto nostep0
  531. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP0 directory
  532. patch .\mfc\samples\scribble\step0 step0.rtp /ignore /nopathsearch
  533. @echo DONE
  534. @echo .
  535.  
  536. :nostep0
  537. rem ------------------------------------------------
  538. REM Patching MFC\SAMPLES\SCRIBBLE\STEP1 directory
  539.  
  540. if not exist MFC\SAMPLES\SCRIBBLE\STEP1\*.* goto nostep1
  541. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP1 directory
  542. patch .\mfc\samples\scribble\step1 step1.rtp /ignore /nopathsearch
  543. @echo DONE
  544. @echo .
  545.  
  546. :nostep1
  547. rem ------------------------------------------------
  548. REM Patching MFC\SAMPLES\SCRIBBLE\STEP2 directory
  549.  
  550. if not exist MFC\SAMPLES\SCRIBBLE\STEP2\*.* goto nostep2
  551. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP2 directory
  552. patch .\mfc\samples\scribble\step2 step2.rtp /ignore /nopathsearch
  553. @echo DONE
  554. @echo .
  555.  
  556. :nostep2
  557. rem ------------------------------------------------
  558. REM Patching MFC\SAMPLES\SCRIBBLE\STEP3 directory
  559.  
  560. if not exist MFC\SAMPLES\SCRIBBLE\STEP3\*.* goto nostep3
  561. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP3 directory
  562. patch .\mfc\samples\scribble\step3 step3.rtp /ignore /nopathsearch
  563. @echo DONE
  564. @echo .
  565.  
  566. :nostep3
  567. rem ------------------------------------------------
  568. REM Patching MFC\SAMPLES\SCRIBBLE\STEP4 directory
  569.  
  570. if not exist MFC\SAMPLES\SCRIBBLE\STEP4\*.* goto nostep4
  571. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP4 directory
  572. patch .\mfc\samples\scribble\step4 step4.rtp /ignore /nopathsearch
  573. @echo DONE
  574. @echo .
  575.  
  576. :nostep4
  577. rem ------------------------------------------------
  578. REM Patching MFC\SAMPLES\SCRIBBLE\STEP5 directory
  579.  
  580. if not exist MFC\SAMPLES\SCRIBBLE\STEP5\*.* goto nostep5
  581. @echo Patching MFC\SAMPLES\SCRIBBLE\STEP5 directory
  582. patch .\mfc\samples\scribble\step5 step5.rtp /ignore /nopathsearch
  583. @echo DONE
  584. @echo .
  585.  
  586. :nostep5
  587. rem ------------------------------------------------
  588. REM Patching HELP directory
  589.  
  590. if not exist HELP\*.* goto nohelp
  591. @echo Patching HELP directory
  592. patch .\help help.rtp /ignore /nopathsearch
  593. @echo DONE
  594. @echo .
  595.  
  596. :nohelp
  597. rem ------------------------------------------------
  598. REM Patching INCLUDE directory
  599.  
  600. @echo Patching INCLUDE directory
  601. patch .\include incl.rtp /ignore /nopathsearch
  602. @echo DONE
  603. @echo .
  604.  
  605. rem ------------------------------------------------
  606. REM Patching INCLUDE\SYS directory
  607.  
  608. if not exist INCLUDE\SYS\*.* goto nosys
  609. @echo Patching INCLUDE\SYS directory
  610. patch .\include\sys incsys.rtp /ignore /nopathsearch
  611. @echo DONE
  612. @echo .
  613.  
  614. :nosys
  615. rem ------------------------------------------------
  616. REM Patching README directory
  617.  
  618. if not exist README\*.* goto :delete
  619. @echo Patching README directory
  620. patch .\readme readme.rtp /ignore /nopathsearch
  621. @echo DONE
  622. @echo .
  623.  
  624. :delete
  625.  
  626. rem -----------------------------------------------
  627. REM Deleting added files if no Visual Programmer
  628.  
  629. if exist BIN\VPRG.EXE goto exe2bin
  630. del bin\efm*.*
  631. del bin\winsmfc.*
  632.  
  633. :exe2bin
  634. rem -----------------------------------------------
  635. REM Deleting exe2bin.pif if not needed
  636.  
  637. if exist BIN\SCW.EXE goto optcfg
  638. if exist LIB\SDS.LIB goto optcfg
  639. del bin\exe2bin.pif
  640.  
  641. :optcfg
  642. rem -----------------------------------------------
  643. REM Deleting config file if OptLink not installed
  644.  
  645. if exist BIN\LINK.EXE goto textmode
  646. if exist BIN\LINKD.DLL goto textmode
  647. del bin\optlink.cfg
  648.  
  649. :textmode
  650. rem -----------------------------------------------
  651. REM Deleting config files if no text-mode debugger
  652.  
  653. if exist BIN\SCDW.EXE goto end
  654. if exist BIN\SCD.EXE goto end
  655. del bin\scdb*.cfg
  656.  
  657. :end
  658. rem ===============================================
  659. REM Cleaning up patch files
  660.  
  661. @echo .
  662. @echo Successfully updated version 6.0 to 6.1
  663. @echo .
  664. @echo About to delete patch files.
  665. @echo If you do not want the following files to be
  666. @echo deleted, press Ctrl+Break, otherwise, press any key:
  667. @echo.
  668. @echo GRAPHIC.EXE   MFCSAM.EXE   PATCH.EXE   *.RTP
  669. @echo .
  670. pause
  671.  
  672. del graphic.exe
  673. del mfcsam.exe
  674. del patch.exe
  675. del *.rtp
  676. del foo.txt
  677. @echo .
  678. @echo We recommend deleting PRO61.EXE and UPDATE.BAT to free up 
  679. @echo 4.5 MB of disk space
  680. goto done
  681.  
  682. :wrongdir
  683. @echo Compiler not found.  Probably copied PRO61.EXE to wrong directory
  684.  
  685. :done
  686.